<!doctype html>
<html>
<head>
    {% load static %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>张勋作业</title>
    <meta name="keywords" content="responsive, bootstrap, free template, fluid layout, templatemo, html css"/>
    <meta name="description" content="Responsive Theme is free template based on Bootstrap framework."/>
    <link href={% static "css/bootstrap.min.css" %} rel="stylesheet" type="text/css">
    <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
    <link href={% static "css/bootstrap-responsive.min.css" %} rel="stylesheet" type="text/css">
    <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"
          type="text/css">
    <link href="templatemo_style.css" rel="stylesheet" type="text/css">
    <!-- HTML 5 shim for IE backwards compatibility -->
    <!-- [if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
  </script>
  <![endif]-->
</head>
<body>
<header>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href={% url "index" %} target="_parent">张勋作业</a>
                <nav class="nav-collapse collapse">
                    <ul class="nav pull-right">
                        <li class="active"><a href={% url "index" %}>主页</a></li>
                        <li><a href={% url "about" %}>关于</a></li>
                        <li><a href={% url "showall" %}>展示</a></li>

                        <li><a href={% url "scontact" %}>联系我们</a></li>

                        {% if request.user.is_authenticated %}
                            <li><a href="">{{ request.user.username }}</a></li>
                            <li><a href={% url "mylogout" %}>退出 </a></li>
                        {% else %}
                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">登录 <span
                                    class="caret"></span></a>
                                <form action={% url "login" %} method="post" class="dropdown-menu">
                                    {% csrf_token %}
                                    {{ mlogin }}
                                    <input type="submit" value="登录">
                                </form>
                            </li>

                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">注册 <span
                                    class="caret"></span></a>
                                <form action={% url "logup" %} method="post" class="dropdown-menu">
                                    {% csrf_token %}
                                    {{ msignup }}
                                    <input type="submit" value="注册">
                                </form>
                            </li>
                        {% endif %}

                    </ul>
                </nav>
            </div>
        </div>
    </div>
</header>
<section class="container" id="carousel_container">
    <div class="row">
        <div class="span12">
            <div id="artCarousel" class="carousel slide">
                <ol class="carousel-indicators">
                    <li data-target="#artCarousel" data-slide-to="0" class="active"></li>
                    <li data-target="#artCarousel" data-slide-to="1"></li>
                    <li data-target="#artCarousel" data-slide-to="2"></li>
                </ol>
                {#          <div class="carousel-inner,item active">#}
                <br><br><br>
                <div class="carousel-inner ">

                    <div class="item active ">
                            <a href={% url "blog" pictureshow.0.pk %}> <img src={{ MEDIA_URL }}{{ pictureshow.0.images }}></a>
                            <div class="carousel-caption">
                                <h4>{{ i.p_name }}</h4>
                                <p>{{ i.p_data }}</p>
                            </div>
                    </div>
                    {% for i in pictureshow|slice:"1:14" %}
                        <div class="item ">
                            <a href={% url "blog" i.pk %}> <img src={{ MEDIA_URL }}{{ i.images }}></a>
                            <div class="carousel-caption">
                                <h4>{{ i.p_name }}</h4>
                                <p>{{ i.p_data }}</p>
                            </div>
                        </div>
                    {% endfor %}
                </div>
                <a class="left carousel-control" href="#artCarousel" data-slide="prev">&lsaquo;</a> <a
                    class="right carousel-control" href="#artCarousel" data-slide="next">&rsaquo;</a>
            </div>
        </div>
    </div>
</section>

<section class="container marketing">

    <hr class="featurette-divider">
    <article class="row">
        <div class="span12">

                <a href={% url "kind1" %}> <img class="img-rounded featurette-image pull-right span4"
                src="{{ MEDIA_URL }}{{ kind1.0.images }}" style="margin-left:
                 30px" alt="Model 4"></a>
            <a href={% url "kind1" %}> <img class="img-rounded featurette-image pull-right span4"
                src="{{ MEDIA_URL }}{{kind1.1.images }}" style="margin-left:
                 30px" alt="Model 4"></a>
            <h3 class="featurette-heading">类1 人物</h3>
            <p>介绍：<br>人物摄像，此项目中只帖了4张美女图片（这块写关于人物分类的简介）</p>
        </div>
    </article>
    <hr class="featurette-divider">
    <article class="row">
        <div class="span12">

                <a href={% url "kind2" %}> <img class="img-rounded featurette-image pull-left span4"
                                                    src="{{ MEDIA_URL }}{{ kind2.0.images }}" style="margin-right:20px" alt="Model 5"></a>
        <a href={% url "kind2" %}> <img class="img-rounded featurette-image pull-left span4"
                                                    src="{{ MEDIA_URL }}{{ kind2.1.images }}" style="margin-right:20px" alt="Model 5"></a>
            <h3 class="featurette-heading">类2 风景</h3>
            <p>介绍：<br>风景摄像，山水（这块写关于风景分类的简介）</p>
        </div>
    </article>
    <hr class="featurette-divider">
    <article class="row">
        <div class="span12">

                <a href={% url "kind3" %}> <img class="img-rounded featurette-image pull-right span4"
                                                    src="{{ MEDIA_URL }}{{ kind3.0.images }}" style="margin-left:
                 30px" alt="Model 6"></a>
<a href={% url "kind3" %}> <img class="img-rounded featurette-image pull-right span4"
                                                    src="{{ MEDIA_URL }}{{ kind3.1.images }}" style="margin-left:
                 30px" alt="Model 6"></a>
            <h3 class="featurette-heading">类3 狗狗</h3>
            <p>介绍：<br>各种狗，本来想写动物，发现范围有点广，改成狗狗了（这块写关于狗狗分类的简介）</p>
        </div>
    </article>
</section>

<footer>
    <div class="container">
        <div id="latest" class="row">

            <section class="span4 rp_box_wrapper">
                <h4> 联系我们 <i class="icon-envelope icon-white"></i></h4>

                <address>
                    <strong>地址</strong><br>
                    天府软件园B区5栋,<br>
                    成都高新区天华一路<br>

                    <abbr title="Phone">Phone:</abbr> <a href="tel:+86 182 0285 2911" title="give us a call">+86 182
                    0285 2911</a><br>
                    <abbr title="Email">Email:</abbr> <a href="15928646660@163.com">15928646660@163.com</a>
                </address>

            </section>

        </div>
        <div class="credit">
            <p id="templatemo_cr_bar">
                网页素材来自 | <a href="http://www.cssmoban.com/">模板之家</a>
            </p>
        </div>
    </div>
</footer>

<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src={% static "js/bootstrap.min.js" %}></script>
<script>
    $('#artCarousel').carousel({
        interval: 4000,
        cycle: true
    });
</script>
</body>
</html>